var CommonUtil = new CommonUtil();

function login() {
    $.ajax({
        cache: true,
        type: 'POST',
		url : CommonUtil.getRootPath() + '/sm/items/login.action',
        data: JSON.stringify(jsondata),
        dataType: 'JSON',
        contentType: 'application/json',
        async: true,
        beforeSend: checkForm,
        error: function (data) {

        },
        success: function (data) {
        	toIndex();
        }
        });
}

function toIndex() {
	location.href = CommonUtil.getRootPath() + '/sm/index.html';
}